package com.ojoin.ojoin.eb_spider.listening;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.ojoin.ojoin.eb_spider.domain.AssistCatchData;
import com.ojoin.ojoin.eb_spider.service.catchdata.MeidiMeiMeiJiaYuanDataCatchServiceImpl;
import com.ojoin.ojoin.eb_spider.service.impl.SLDataCatchBaseServiceImpl;

public class MeidiMeiMeiJiaYuanCatchDateListening implements CatchDateListening {

	private static Logger log = LoggerFactory.getLogger(MeidiMeiMeiJiaYuanDataCatchServiceImpl.class);

	private SLDataCatchBaseServiceImpl dataCatchBaseServiceImpl;
	private AssistCatchData as;

	public MeidiMeiMeiJiaYuanCatchDateListening(SLDataCatchBaseServiceImpl dataCatchBaseServiceImpl,
			AssistCatchData as) {
		this.as = as;
		this.dataCatchBaseServiceImpl = dataCatchBaseServiceImpl;
	}

	@Override
	public void reStart() {
		try {
			dataCatchBaseServiceImpl.catchData(as);
		} catch (Exception e) {
			log.error("重启异常", e);
		}

	}

}
